package com.usian.article.feign;


import com.usian.model.article.pojo.dto.ArticleInfoDto;
import com.usian.model.behavior.ApBehaviorEntry;
import com.usian.model.behavior.ApFollowBehavior;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("leadnews-behavior")
public interface BehaviorFeign {
    @PostMapping("/behavior/api/v1/entry/one")
    public ApBehaviorEntry getEnterById(@RequestBody ArticleInfoDto dto);
    @PostMapping("/behavior/api/v1/follow/one")
    public ApFollowBehavior getFollowById(@RequestBody ArticleInfoDto dto);
    @PostMapping("/behavior/api/v1/like/one")
    public ApLikesBehavior getLikeById(@RequestBody ArticleInfoDto dto);
    @PostMapping("/behavior/api/v1/unlike/one")
    public ApUnlikesBehavior getUnlikeById(@RequestBody ArticleInfoDto dto);
}
